<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>application_js_spec</title>
	<script type="text/javascript" src="../../public/mediaplayer/swfobject.js"></script>
	<script type="text/javascript" src="../../public/javascripts/jquery-1.2.6.js"></script>
	<script type="text/javascript" src="../../public/javascripts/application.js"></script>
	<!-- Both these files are needed in each html spec to run properly
		Dependent files for code being documented should be included above -->
	<script type="text/javascript" src="../diff_match_patch.js"></script>
	<script type="text/javascript" src="../JSSpec.js"></script>
	<link rel="stylesheet" type="text/css" href="../JSSpec.css" />
	<script type="text/javascript">
		describe('IE6', {
			//before, before_each, 'before each' : function(){x = my_value;},
			//after also available w/same pattern
			before : function(){is_ie6 = ie6();},
			//supports boolean identified by [] then each branch[],
			//compounds work also [[true] | [false] | [?]]
			'should return true if the browser is IE6 [[JSSpec.Browser.IE6]]': function() {
				value_of(is_ie6).should_be_true();
			},
			'should return false if the browser is not IE6 [[!JSSpec.Browser.IE6]]': function() {
				value_of(is_ie6).should_be_false();
			}
		}),
		describe('play video', {
			before : function(){play_video('../public/flv/flash_anime.flv');
			video = $("#video_container").html()},
			'should embed the player in the video_container div': function(){
				value_of(video).should_match(/embed/);
			},
			'should load flash_anime.flv': function(){
				value_of(video).should_match(/flash_anime.flv/);
			}
		}),
		describe('get page size', {
			before : function(){array_page_size = get_page_size();},
			'should return two elements': function(){
				value_of(array_page_size.length).should_be(2);
			},
			'should return a positive number for the width': function(){
				value_of(array_page_size[0] > 0).should_be(true);
			},
			'should return a positive number for the height': function(){
				value_of(array_page_size[1] > 0).should_be(true);
			}
		})
	</script>
</head>
<body>
	<!-- Add dependent elements to body if needed, they will not be visible when running specs -->
	<div id="video_container"></div>
</body>
</html>
